What is Padding in CSS (Cascading style Sheet) and how to use it ? Abhishek Srivasatava147913-Oct-2016css-css3css Updated on 14-Sep-2020
Abhishek Srivasatava
13-Oct-2016It is to control the spaces around the content.
there is two way by which we can declare this property:
1st method
2nd method
In the above example, if there is only three value. For example
Then top value will be 50px
Left –right value will be 20px
And button 80px
if there is only two value. for example
Then top & bottom value will be 50px
And Left –right value will be 20px
If there is only one value. for example
Then top bottom Left & right all have value 50px.